<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>user</title>
    <link rel="stylesheet" type="text/css" href="assets/css/user.css">
</head>
<body>
    <% include user-header.html %>
    egg page ...
    <br/>
    <button onclick="login()">登录</button><br/>
    <button onclick="logout()">退出</button><br/>
    id : <%= id %>
    <br/>
    <% if(user){ %>
       已经登录： <%= user.name %>
    <% }else{ %>
        未登录
    <% } %>
    <!-- name: <%= name %> -->
    

    <div>中文zh: <%= zh %></div>
    <div>中文base64: <%= base64 %></div>
    <ul id="user">
        <% for(var i =0; i < lists.length; i++) { %>
            <li>
                <%= lists[i] %>
            </li>
        <% } %>
    </ul>

    <script src="assets/js/user.js"></script>

    <img src="assets/img/2.jpg">
</body>
</html>